package com.ruoyi.student.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 学籍信息管理对象 t_school_grade_info
 * 这张表的表数据由在校生数据直接生成
 *
 * @author linyang
 * @date 2024-03-27
 */

@TableName("t_school_degree_info")
public class SchoolDegreeInfo extends BaseEntity {


    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 年级
     */
    @Excel(name = "年级")
    private Long grade;

    /**
     * 系别
     */
    @Excel(name = "系别")
    private String department;

    /**
     * 专业
     */
    @Excel(name = "专业")
    private String major;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGrade(Long grade) {
        this.grade = grade;
    }

    public Long getGrade() {
        return grade;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getDepartment() {
        return department;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getMajor() {
        return major;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("grade", getGrade())
                .append("department", getDepartment())
                .append("major", getMajor())
                .toString();
    }
}
